/// <reference path="../typings/node.d.ts" />
/// <reference path="../typings/lib.d.ts" />

import { CoreServer } from './server'
import conf from './config'
import routerStatic from './routes/static'
import routerGithub from './routes/github'

async function main() {
  var server = new CoreServer()
  server.listen(conf.port, conf.hostname)
  server.bindRouter(routerStatic)
        .bindRouter(routerGithub)
}

main()